import React from 'react';
import { Icon } from 'antd';
import styles from './index.less';

export default function Tip({ tip, action }) {
    return (
        <div className={styles.root}>
            <Icon type="info-circle" theme="filled" style={{ color: '#1890ff', marginRight: 4 }} />
            <span className={styles.tip}>{tip}</span>
            {action}
        </div>
    );
}
